import VueRouter from 'vue-router'
import CountComponent from '../pages/Count.vue'
import PersonComponent from '../pages/Person.vue'
import MessageComponent from '../pages/Message.vue'
import NewsComponent from '../pages/News.vue'
import OthersComponent from '../pages/Others.vue'


export default new VueRouter({
    routes: [
        {
            path: '/count',
            name: 'count',
            component: CountComponent

        },
        {
            path: '/person',
            name: 'person',
            component: PersonComponent,
        }
        ,
        {
            path: '/message',
            name: 'message',
            component: MessageComponent,
            children: [
                {
                    path: 'news',
                    name: 'news',
                    component: NewsComponent
                },
                {
                    path: 'others',
                    name: 'others',
                    component: OthersComponent
                }
            ]
        }
    ]
})